import request from '@/utils/request.js'
export const page = (data) => {
    return request.get(
        '/user/getPage',
        {
            params:data,
        }
    )
}
export const add = (data) => {
    return request.post(
        '/user/add',
        data
    )
}

export const dele = (id) => {
    return request.delete(
        `/user/delete/${id}`,
    )
}
export const update =(username,data) =>{
    return request.put(
        `/user/update/${username}`,
        data
    )
}